import unittest
import Fraction
import PrimeNumber
    
class TestCase(unittest.TestCase):
    def setUp(self):
        # set up code gere
        pass
        
    def testFraction(self):
        x = Fraction.Fraction(0)
        for i in range(1, 501):
            x += Fraction.Fraction(1, i)     
            # print i, x
        return True
        
    def testPrimeNumber(self):
        p = PrimeNumber.PrimeFactor(2*3*7)
        print p.primeNumbers
        q = PrimeNumber.PrimeFactor(3*3*7*11*13*17*19*19*23*47*47*47)
        print p.primeNumbers
        print q.primeNumbers
        print p, q
        print p | q
        print (p & q), int(p&q)
        print int(p)
        return True     
        
if __name__ == "__main__":
    unittest.main()
